
import com.toedter.calendar.JCalendar;
import java.text.DateFormat;
import java.util.Date;
import javax.swing.JDialog;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PanelProyecto.java
 *
 * Created on May 10, 2010, 7:02:43 AM
 */

/**
 *
 * @author Snailin
 */
public class PanelProyecto extends javax.swing.JPanel {
    private Date fechaInforme;
    private static DateFormat formatoFecha;
    private String [] escolaridad=null;
    private String [] recomendaciones=null;
    /** Creates new form PanelProyecto */
    public PanelProyecto() {
        initComponents();
        recomendaciones=new String[]{"Remodelar","Cambiar Local"};
        escolaridad=new String[]{"Primaria","Intermedia","Secundaria"};
        cmbRecomendaciones.addItem(recomendaciones);
        cmbEscolaridad.addItem(escolaridad);
          fechaInforme=new Date();
        formatoFecha = DateFormat.getDateInstance();
        tabLocacion.setTitleAt(0, "Informacion Personal");


    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        tabLocacion = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        lblNombre = new javax.swing.JLabel();
        lblDescripcion = new javax.swing.JLabel();
        lblEscolaridad = new javax.swing.JLabel();
        lblPoderAdquisitivo1 = new javax.swing.JLabel();
        lblLocalPropio = new javax.swing.JLabel();
        lblEstadoFisico = new javax.swing.JLabel();
        lblRecomendaciones = new javax.swing.JLabel();
        lblTipoChequeoRealizado = new javax.swing.JLabel();
        txtNombre = new javax.swing.JTextField();
        txtPoderAdquisitivo = new javax.swing.JTextField();
        cmbEscolaridad = new javax.swing.JComboBox();
        rbtnSi = new javax.swing.JRadioButton();
        rbtnNo = new javax.swing.JRadioButton();
        rbtnBien = new javax.swing.JRadioButton();
        rbtnMal = new javax.swing.JRadioButton();
        cmbRecomendaciones = new javax.swing.JComboBox();
        txtTipoDeChequeo = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        txtDescripcion = new javax.swing.JTextArea();
        cmbIngeniero = new javax.swing.JComboBox();
        lblIngeniero = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        lblInformeRealizado = new javax.swing.JLabel();
        rbtnInformeRealizado = new javax.swing.JRadioButton();
        rbtnInformeNoRealizado = new javax.swing.JRadioButton();
        lblFechaInforme = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        lblDescripcionInforme = new javax.swing.JLabel();
        txtFechaInforme = new javax.swing.JTextField();
        txtNombrePersonaEnviado = new javax.swing.JTextField();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        btnElegirFechaInforme = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        lblCantidadPoblacional = new javax.swing.JLabel();
        lblProyeccionCrecimiento = new javax.swing.JLabel();
        lblDescripcionCrecimiento = new javax.swing.JLabel();
        txtCantidadPoblacional = new javax.swing.JTextField();
        txtProyeccion = new javax.swing.JTextField();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTextArea2 = new javax.swing.JTextArea();

        lblNombre.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        lblNombre.setText("Nombre Proyecto:");

        lblDescripcion.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        lblDescripcion.setText("Descripcion:");

        lblEscolaridad.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        lblEscolaridad.setText("Escolaridad:");

        lblPoderAdquisitivo1.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        lblPoderAdquisitivo1.setText("Poder Adquisitivo:");

        lblLocalPropio.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        lblLocalPropio.setText("Local Propio:");

        lblEstadoFisico.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        lblEstadoFisico.setText("Estado Fisico:");

        lblRecomendaciones.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        lblRecomendaciones.setText("Recomendaciones:");

        lblTipoChequeoRealizado.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        lblTipoChequeoRealizado.setText("Tipo de Chqueo Realizado:");

        cmbEscolaridad.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cmbEscolaridad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmbEscolaridadActionPerformed(evt);
            }
        });

        rbtnSi.setText("Si");

        rbtnNo.setText("No");
        rbtnNo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtnNoActionPerformed(evt);
            }
        });

        rbtnBien.setText("Bien");
        rbtnBien.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtnBienActionPerformed(evt);
            }
        });

        rbtnMal.setText("Mal");

        cmbRecomendaciones.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        txtDescripcion.setColumns(20);
        txtDescripcion.setRows(5);
        jScrollPane1.setViewportView(txtDescripcion);

        cmbIngeniero.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        lblIngeniero.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        lblIngeniero.setText("Ingeniero");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                        .addGap(58, 58, 58)
                        .addComponent(lblDescripcion)
                        .addGap(13, 13, 13)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 237, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblEscolaridad)
                            .addComponent(lblPoderAdquisitivo1)
                            .addComponent(lblLocalPropio)
                            .addComponent(lblEstadoFisico)
                            .addComponent(lblTipoChequeoRealizado)
                            .addComponent(lblNombre)
                            .addComponent(lblRecomendaciones)
                            .addComponent(lblIngeniero))
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(cmbEscolaridad, 0, 231, Short.MAX_VALUE)
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(txtPoderAdquisitivo, javax.swing.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE)
                                            .addComponent(txtNombre, javax.swing.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE)))
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(rbtnSi)
                                        .addGap(10, 10, 10)
                                        .addComponent(rbtnNo))
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(rbtnBien)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(rbtnMal))))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txtTipoDeChequeo, javax.swing.GroupLayout.DEFAULT_SIZE, 237, Short.MAX_VALUE)
                                    .addComponent(cmbRecomendaciones, 0, 237, Short.MAX_VALUE)
                                    .addComponent(cmbIngeniero, javax.swing.GroupLayout.Alignment.TRAILING, 0, 237, Short.MAX_VALUE))))))
                .addGap(253, 253, 253))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(34, 34, 34)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNombre)
                    .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblPoderAdquisitivo1)
                    .addComponent(txtPoderAdquisitivo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblEscolaridad)
                    .addComponent(cmbEscolaridad, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(11, 11, 11)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblLocalPropio)
                    .addComponent(rbtnSi)
                    .addComponent(rbtnNo))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblEstadoFisico)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(rbtnBien)
                        .addComponent(rbtnMal)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cmbRecomendaciones, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblRecomendaciones))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTipoChequeoRealizado)
                    .addComponent(txtTipoDeChequeo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cmbIngeniero, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblIngeniero))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescripcion)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        tabLocacion.addTab("tab1", jPanel1);

        lblInformeRealizado.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        lblInformeRealizado.setText("Informe Realizado:");

        rbtnInformeRealizado.setText("Si");

        rbtnInformeNoRealizado.setText("No");

        lblFechaInforme.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        lblFechaInforme.setText("Fecha Informe:");

        jLabel1.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        jLabel1.setText("Nombre Persona Enviado:");

        lblDescripcionInforme.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        lblDescripcionInforme.setText("Descripcion Informe:");

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jScrollPane2.setViewportView(jTextArea1);

        btnElegirFechaInforme.setText("...");
        btnElegirFechaInforme.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnElegirFechaInformeActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblInformeRealizado)
                    .addComponent(lblFechaInforme)
                    .addComponent(jLabel1)
                    .addComponent(lblDescripcionInforme))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtNombrePersonaEnviado)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(rbtnInformeRealizado)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(rbtnInformeNoRealizado))
                    .addComponent(txtFechaInforme, javax.swing.GroupLayout.DEFAULT_SIZE, 207, Short.MAX_VALUE)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 255, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnElegirFechaInforme, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(70, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rbtnInformeRealizado)
                    .addComponent(rbtnInformeNoRealizado)
                    .addComponent(lblInformeRealizado))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtFechaInforme, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblFechaInforme)
                    .addComponent(btnElegirFechaInforme))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(txtNombrePersonaEnviado, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescripcionInforme)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(194, Short.MAX_VALUE))
        );

        tabLocacion.addTab("tab2", jPanel2);

        lblCantidadPoblacional.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        lblCantidadPoblacional.setText("Cantidad Poblacional:");

        lblProyeccionCrecimiento.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        lblProyeccionCrecimiento.setText("Proyeccion Crecimiento Poblacional:");

        lblDescripcionCrecimiento.setFont(new java.awt.Font("Agency FB", 0, 14)); // NOI18N
        lblDescripcionCrecimiento.setText("Descripcion:");

        jTextArea2.setColumns(20);
        jTextArea2.setRows(5);
        jScrollPane3.setViewportView(jTextArea2);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblDescripcionCrecimiento)
                    .addComponent(lblProyeccionCrecimiento)
                    .addComponent(lblCantidadPoblacional))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtCantidadPoblacional, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtProyeccion, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 253, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(78, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCantidadPoblacional)
                    .addComponent(txtCantidadPoblacional, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblProyeccionCrecimiento)
                    .addComponent(txtProyeccion, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescripcionCrecimiento)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(232, Short.MAX_VALUE))
        );

        tabLocacion.addTab("tab3", jPanel3);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(tabLocacion, javax.swing.GroupLayout.PREFERRED_SIZE, 509, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(26, 26, 26)
                .addComponent(tabLocacion, javax.swing.GroupLayout.DEFAULT_SIZE, 446, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    private void rbtnNoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtnNoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_rbtnNoActionPerformed

    private void rbtnBienActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtnBienActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_rbtnBienActionPerformed

    private void btnElegirFechaInformeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnElegirFechaInformeActionPerformed
          Date fecha = seleccionarFechaInforme();
							fechaInforme = fecha;
							txtFechaInforme.setText(String
									.valueOf(formatoFecha
											.format(fechaInforme)));
    }//GEN-LAST:event_btnElegirFechaInformeActionPerformed

    private void cmbEscolaridadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmbEscolaridadActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_cmbEscolaridadActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnElegirFechaInforme;
    private javax.swing.JComboBox cmbEscolaridad;
    private javax.swing.JComboBox cmbIngeniero;
    private javax.swing.JComboBox cmbRecomendaciones;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextArea jTextArea2;
    private javax.swing.JLabel lblCantidadPoblacional;
    private javax.swing.JLabel lblDescripcion;
    private javax.swing.JLabel lblDescripcionCrecimiento;
    private javax.swing.JLabel lblDescripcionInforme;
    private javax.swing.JLabel lblEscolaridad;
    private javax.swing.JLabel lblEstadoFisico;
    private javax.swing.JLabel lblFechaInforme;
    private javax.swing.JLabel lblInformeRealizado;
    private javax.swing.JLabel lblIngeniero;
    private javax.swing.JLabel lblLocalPropio;
    private javax.swing.JLabel lblNombre;
    private javax.swing.JLabel lblPoderAdquisitivo1;
    private javax.swing.JLabel lblProyeccionCrecimiento;
    private javax.swing.JLabel lblRecomendaciones;
    private javax.swing.JLabel lblTipoChequeoRealizado;
    private javax.swing.JRadioButton rbtnBien;
    private javax.swing.JRadioButton rbtnInformeNoRealizado;
    private javax.swing.JRadioButton rbtnInformeRealizado;
    private javax.swing.JRadioButton rbtnMal;
    private javax.swing.JRadioButton rbtnNo;
    private javax.swing.JRadioButton rbtnSi;
    private javax.swing.JTabbedPane tabLocacion;
    private javax.swing.JTextField txtCantidadPoblacional;
    private javax.swing.JTextArea txtDescripcion;
    private javax.swing.JTextField txtFechaInforme;
    private javax.swing.JTextField txtNombre;
    private javax.swing.JTextField txtNombrePersonaEnviado;
    private javax.swing.JTextField txtPoderAdquisitivo;
    private javax.swing.JTextField txtProyeccion;
    private javax.swing.JTextField txtTipoDeChequeo;
    // End of variables declaration//GEN-END:variables



    	private Date seleccionarFechaInforme() {
		JCalendar calendar = new JCalendar();
		JDialog dialogo = new JDialog();
		dialogo.setTitle("Elija la Fecha En Que Se Fundo");
		dialogo.setModal(true);
		dialogo.setContentPane(calendar);
		dialogo.setSize(210, 169);
		dialogo.setVisible(true);
		return calendar.getDate();

	}


public static void main (String [] args){
DialogoProyecto dialogo =DialogoProyecto.getInstancia();
dialogo.setVisible(true);

}
}
